Jump to content

Uploading images


 Share

Recommended Posts

Hey all

I've created a program that will take a screenshot and upload it via FTP to my server. The only problem there is that close to 50 people are going to be doing this at the same time and my FTP server only allows 2 connections at once from the same user plus people could use wireshark or a similar program to sniff out the username and password to the server.

So that brings us to my question. I'm using the _HTTP UDF to upload other data to my server through PHP files. What I would like to do is send the image data to my server through HTTP post and save the image in my database. I've tried and tried but I only get "The image cannot be displayed because it contains errors". I'm opening the image as binary, converting it to base64 and then sending it to the PHP script. Then of course when I try to view the image I decode the base64 and display the raw data. I do not think the correct data is being sent to the server though.

Anyone got any ideas?

Edited by shortiee4
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...