I have an app with HTTP server service
When the customer ask for a file, the app send this file (is a JPG file) and then the app delete this file on the device.
All works fine on many devices, but on a device these lines fault:
My image appeare right for the 90% of the image, and the last lineas on image are all grey.
This because, while the system is sending the image, it are deleted !
If I delete the line
it works fine
How can I do ?
I want to delete the file when the system has finished to send the file, so the file is uploaded right.
Many thanks
Sergio
When the customer ask for a file, the app send this file (is a JPG file) and then the app delete this file on the device.
All works fine on many devices, but on a device these lines fault:
B4X:
' send the file
Response.SetContentType("image/jpeg")
Response.SendFile(File.DirDefaultExternal, FileNameToSend)
' delete the file
File.Delete(File.DirDefaultExternal, FileNameToSend)
My image appeare right for the 90% of the image, and the last lineas on image are all grey.
This because, while the system is sending the image, it are deleted !
If I delete the line
B4X:
File.Delete(File.DirDefaultExternal, FileNameToSend)
How can I do ?
I want to delete the file when the system has finished to send the file, so the file is uploaded right.
Many thanks
Sergio