Send data to server as file
P粉993712159
P粉993712159 2024-03-20 08:44:24
0
1
277

I received an image from the clipboard as a bitmap and need to send it to the server as a file. How can I achieve this without saving it as a file on the user's computer?

P粉993712159
P粉993712159

reply all(1)
P粉052724364

Since you did not mention the technology stack, I will answer this question from a general theoretical perspective.

You should convert the clipboard data to a byte stream and send it to the server via an HTTP multipart/form data request.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!