Hack Forums
[.NET] Upload Screenshot to ftp without saving? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Upload Screenshot to ftp without saving? (/showthread.php?tid=4364401)



Upload Screenshot to ftp without saving? - Chefhatrulez - Jul 28, 2014

Hey,
I'm currently creating a screenshot tool that uploads screens to a ftp server (which can be changed in settings). I know there are several tools like this out, but I don't know any supporting custom ftp servers and I just want to create it lol. :)
Is it possible to upload a screenshot, for example saved in a picturebox to a ftp server, without saving it somewhere on your harddrive? Because wouldn't it dammage your HDD over long use?


If it doesn't work is it safer to use a for USB stick to temp save the files and upload, then delete again?


Thanks in advance. 🤝


* - LordCoder - Jul 28, 2014

(Jul 28, 2014 09:48 AM)Chefhatrulez Wrote:  Because wouldn't it dammage your HDD over long use?

[img]http://s25.postimg.org/do6ohqzov/b3e88a27e64e8ac7f48c89a90a5f51210311095b9940c71b.jpg[/img]




You can upload the Byte[] from your created Bitmap.
http://www.codeproject.com/Articles/15460/C-Image-to-Byte-Array-and-Byte-Array-to-Image-Conv


* - Chefhatrulez - Jul 28, 2014

Isn't it bad for a HDD to create and delete files over and over again?
btw pic lost quality due to watermarks#

Gonna check tutorial anyways, thansk.


Okay got it working.
Picturebox is converted into bytearray and then uploaded with UploadData.