[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]


    Search the Q&A Archives


You have to write a VB code - which sends multiple-files -...

<< Back to: Winsock Programmer's FAQ (updated 1999.06.27)

Question by bheem_luck
Submitted on 4/30/2004
Related FAQ: Winsock Programmer's FAQ (updated 1999.06.27)
Rating: Not yet rated Rate this question: Vote
You have to write a VB code - which sends multiple-files - (file1, file2, file3, file4) to a web-server(http://server.dummy.com/).
The call is initiated by On Click() event (Button / Menu).

You have to write the client-side code (VB application) - which communicates with the web-server, transfers files, and then receives the return results and stores them into a table.

This is the entire communication process between your VB application and the web-service.
a) VB client initiates communication with server.
b) VB Client sends authentication data (user name/password/account-number)
c) VB client checks the return values of server result (TRANSMISSION_OK / TRANSMISSION_FAILURE)
d) If it gets TRANSMISSION_OK - it starts multiple-file transfer (using HTTP protocol), to http://server.dummy.com/.

You have to check for the following errors in transmission
- connection-timeout :55 seconds
- If TRANSMISSION_FAILURE - then resend till you get TRANSMISSION_OK

e) After you get TRANSMISSION_OK - the server returns with 2 values - TRACK_ID and a JPG image file, which you have store in TABLE: Store_results.

Files to transfer
file1.x
file2.x
file3.x
file4.x

TABLE Structure: Store_results
ID(Primary Key) - Integer;
Return MAXI_CODE - JPG Image;
TRACK_ID - longint;



Answer by rajniprabha
Submitted on 2/16/2005
Rating: Not yet rated Rate this answer: Vote
xzsawq

 

Your answer will be published for anyone to see and rate.  Your answer will not be displayed immediately.  If you'd like to get expert points and benefit from positive ratings, please create a new account or login into an existing account below.


Your name or nickname:
If you'd like to create a new account or access your existing account, put in your password here:
Your answer:

FAQS.ORG reserves the right to edit your answer as to improve its clarity.  By submitting your answer you authorize FAQS.ORG to publish your answer on the WWW without any restrictions. You agree to hold harmless and indemnify FAQS.ORG against any claims, costs, or damages resulting from publishing your answer.

 

FAQS.ORG makes no guarantees as to the accuracy of the posts. Each post is the personal opinion of the poster. These posts are not intended to substitute for medical, tax, legal, investment, accounting, or other professional advice. FAQS.ORG does not endorse any opinion or any product or service mentioned mentioned in these posts.

 

<< Back to: Winsock Programmer's FAQ (updated 1999.06.27)


[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]

© 2008 FAQS.ORG. All rights reserved.