I am looking for a way to load an image from my disk into a CPImageView. Is this possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To upload an image to a server, you could either use a normal file upload button such as what is implemented by
FileUpload. Or, if you’re not afraid of some potentially very tricky cross browser problems you could try to use my fork ofDeep Drop Uploadwhich allows drag and drop upload.In either case, once the image is on your server you need your server to return the URL of where the image can be viewed. Let’s say this URL is
http://example.com/uploads/image101.png. Then you can display it in aCPImageViewthe normal way: