Help uploading image & displaying #5019
Replies: 3 comments 1 reply
-
The file should have the same |
Beta Was this translation helpful? Give feedback.
-
figured it out - I wasn't seeking to the beginning of the memory stream before saving to file. |
Beta Was this translation helpful? Give feedback.
-
great - I spoke too soon. I got it working on my work laptop, but when I put the same code (w/ destination save path changes) on my personal laptop, the "await file.WriteToStreamAsync( stream );" call doesn't worked. do I need to run VS in admin mode? I even tried making the dest folder full access to everyone, but the writing to the memorystream happens before writing to disk... |
Beta Was this translation helpful? Give feedback.
-
I'm trying to make an online character sheet, & thought I could have character potrait section. the user would upload an image, then it would be displayed in an image. unfortunately, the type in the arguments after uploading a file for both the fileedit & filepicker is an IFileEntry. I can read that into a memory stream, but everything I've tried thus far saving that to a file on my computer results in some kind of file that can't be opened & viewed on my machine, with something like paint.net . am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions