0

How to upload image to SQL in Xcode? I have viewed past answers to this, but have several questions regarding these past answers. Specifically, in the following Q&A thread, people suggest what the xcode and php files should look like.

So here are my follow up questions to that original post above:

  1. I am assuming the code included for xcode is for the implementation file. So what about the header file? What should that look like?

  2. How should the table in SQL be set up to accept the images/image data?

1 Answer 1

0

1) That's the implementation file, you would declare your instance variables and methods in the header file.

2) The 'image' column in the above example would be a Blob:

CREATE TABLE 'images' ('id' INT NOT NULL AUTO_INCREMENT PRIMARY KEY, 'image' BLOB NOT NULL);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.