This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
I need to write a code where it has to read a file from Local Machine and Save it to Remote machine.
For text file below is the code which I had used, in this code I read each line and saved them in new text file in remote machine.
But I failed them with Image and PDF.
posted 6 years ago
Two things I noticed: Firstly, AvailableDoesntDoWhatYouThinkItDoes, and secondly, PDFs are not text files - they're binary files. That means you can't handle them them with Reader and Writer classes, you need to handle them with Stream classes.