0

I'm creating a program that allows a user to take a .pdf from their computer and save it to a predetermined location on a shared server. The server is a file share system not SQL.

I'm trying to figure out how to fix it to where all they have to do is press btnUpload or btnUpdate then the OpenFileDialog will open, they select the .pdf and then it automatically saves to the predetermined location.

The issue I'm running into is how do I save the opened pdf as an object so that I can then save it to the location? Or am I go about this in the wrong direction?

Platform: C# Winform / WPF

William Hodges
  • 661
  • 10
  • 24
  • 1
    It's a binary blob, it doesn't need any specific object. Just a byte array, if you need to transfer it and not just copy the file via filesystem. – Sami Kuhmonen Jan 25 '16 at 06:56
  • Possible duplicate to http://stackoverflow.com/questions/566462/upload-files-with-httpwebrequest-multipart-form-data – Tah Jan 25 '16 at 07:00
  • It's not a duplicate. The one you linked was for http, this is c# winform. Sami, so just convert into a byte array? And then use save file for that? – William Hodges Jan 25 '16 at 07:07
  • *this is c# winform* - Please update your question. From the question itself it was not clear that any web technology is involved at all. – mkl Jan 25 '16 at 07:25
  • Done, thank you! Sorry about that – William Hodges Jan 25 '16 at 08:13

0 Answers0