The content you requested has been removed. Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Sign in to vote. EventArgs Handles Button1. StoredProcedure parameter. Input 'need to write something here command. AddWithValue "? Open command. ExecuteNonQuery command. Clear connectionObject. Collectives on Stack Overflow. Learn more. Asked 5 years, 11 months ago.
Active 5 years, 10 months ago. Viewed 13k times. What I am sure of, however, is that the current setup doesn't work at all. Rao H 2 2 gold badges 4 4 silver badges 13 13 bronze badges. That seems to have fixed it! Thanks Sunand! Add a comment. And hopefully give an error message if the former. The dialog appears asking me if I want to open the file or save it, so I chose to save it just now. When I go to the file system and try to open it, that is when I get the File Conversion dialog which defaults to opening it in Japanese.
If I choose to open the file instead of save the file immediately, I also get the same dialog. Since the file is not related to anything Japanese, I assume I am using the streams incorrectly in some way.
Jan Cumps. Compare the original file and the downloaded file from the command promt. Now you don't have to wonder anymore, but you will know for fact if they are the same.
I'm going to Google this, but when I try using "compare" on Windows Vista, I get this message: 'compare' is not recognized as an internal or external command, operable program or batch file. I'm attaching a picture of what the file looks like when I open it in Word.
I think I am just handling the streams incorrectly. Does anyone see an error in my code downloading or storing the file? This is not a clean word document. It contains markup info. Are you streaming via a JSP page? The issue is not in your JDBC part, but in the way you stream it. You might get more help on how to properly stream a file on the Servlet forum.
The code I posted is a method in a Java helper class I call "Utilities. The arguments to the method are, however, an HttpServletResponse and a String as can be seen from the first post.
I'm not sure how to transfer a post if that is what needs to be done. I have been at this point for several days and would like to resolve this issue for sure! I'm not sure if this is servlets of JDBC. Bear Bibeault. What does the data look like in the database? Is it just the text of the file, or are the headers all mixed up in it?
I'm really feeling like I should know this; but I'll ask anyway. I did use the same upload code a while back to simply transfer the file from one directory to another in the file system, and that worked fine. Then I tried to progress to loading it in the database which at least gives no obvious errors. I'll be out for a couple of hours right now, but I will try whatever you suggest when I return.
Unfortunately, I've been at this impasse more than a week; if you have any suggestions, I'd love to hear them! Thanks so much. Is it a text doc or a Word file? Word files are not text docs. I'm just puzzled as to what the problem is now David Newton.
0コメント