This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I need to download files through my program from an https site. I've done this through ftp. But can't see how it's done through https. Can it be done? How?
Have a look at this example. It creates a Reader from the InputStream -which wouldn't be appropriate for a binary file- but otherwise it's just what you're asking for.
It's returning data. The only problem is it's not returning the correct data. I think it has something to do with the encoding but i cant seem to fix the problem. Here's the file I'm trying to get.
There shouldn't be any encoding issues if you save the bytes you receive from the InputStream directly into a file. Encodings only enter the picture once the bytes are converted into characters.
Open the saved file in a text editor, and try out various encodings to see which one might be correct.
Dylan Margoczi
Ranch Hand
Joined: Jul 12, 2007
Posts: 38
posted
0
It comes up as "Unicode" in EmEditor. but when I try read it using "Unicode" in the program it still doesn't come out right.
I need to convert it to characters in order to work with it.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.