Asked by:
.

Question
-
All replies
-
It's normal reading ,you can read your image file in binary mode . And then simply send this binary blob to client and at client end read the data and save it in some file . later you can rename the file with your image file like xyz.jpg etc.
Thanks
Rupesh Shukla
Thursday, September 7, 2017 7:22 PM -
If you don't want to rename the file on the server after it is transferred, then don't. But if you don't have access to the server, how are you going to transfer the data in the first place.Friday, September 8, 2017 5:29 AM
-
because I don't have access to server.
If you don't have access to the server in your server app, how do you want to save the receiving data on disk?
Friday, September 8, 2017 5:46 AM -
You started a second post with the same question.
Where do you want us to answer?
Friday, September 8, 2017 8:08 AM -
I meant to say that I can only connect and send files to the server, but can't do any changes at the server. If there are for example 100 images, renaming each image would not be reliable.
Why do you need to rename anything? If you send multiple files, doesn't each file already have a unique name on the sending system?
Why do you think you need to change anything about the file before you transmit it? Will the winsock API you are using not handle binary data?
Friday, September 8, 2017 12:02 PM -
Friday, September 8, 2017 12:33 PM
-
JPG files are already "in binary format." You don't need to change anything.Friday, September 8, 2017 7:05 PM