pffile

I can't get image from PFFile

一世执手 提交于 2020-02-02 14:06:30
问题 Parse.com just updated their SDKs to support local storage. But after installing new SDKs I have occurred some problems with PFFile. I have used the same method for a long time, but now that I'm using the new SDK I can't get it to work. Here's my code: .h file @property (strong, nonatomic) IBOutlet PFFile *iconPhoto; .m file cell.iconPhoto.image = [UIImage imageNamed:@"placeholder.png"]; // placeholder image cell.iconPhoto.file = (PFFile *)object[@"icon"]; // remote image [cell.iconPhoto

I can't get image from PFFile

為{幸葍}努か 提交于 2020-02-02 14:01:38
问题 Parse.com just updated their SDKs to support local storage. But after installing new SDKs I have occurred some problems with PFFile. I have used the same method for a long time, but now that I'm using the new SDK I can't get it to work. Here's my code: .h file @property (strong, nonatomic) IBOutlet PFFile *iconPhoto; .m file cell.iconPhoto.image = [UIImage imageNamed:@"placeholder.png"]; // placeholder image cell.iconPhoto.file = (PFFile *)object[@"icon"]; // remote image [cell.iconPhoto

Image within PFFile will be uploaded to parse instead of being saved into the local datastorage

旧城冷巷雨未停 提交于 2019-12-29 05:37:04
问题 I am using swift with the Parse Framework (1.6.2). I am storing data into the local datastorage. The data consists of a few strings and an image. This image will be stored within a PfFile and then will be added to the PfObject. Now I wondered why the image doesn't get saved until I noticed I needed to call the save() method of the PFFile. Problem is that the Image then seems to be uploaded to Parse which I don't want. I want it to be stored on the local device.. Is there a solution for this?

How do I Save an Image PFFile in localdatastore while Offline Parse.com?

本秂侑毒 提交于 2019-12-24 04:17:12
问题 I'm developing an App that use Parse.com Server to Store PFUsers Informations and Classes for each PFUser. I'm able to save everything to the server when i'm online but i would like use the app also when there's no Internet connect which means to save them also when i'm Offline. My App is simple, I have: LoginVC Tableview with all Cars "Cars for Each PFUSER" ViewController "Add a Car" + I Search in Parse.com Docs & i found SaveEventually when we are offline. - (IBAction)save:(id)sender {

Downloading PFFile (Image) from Parse append it to array and fill UIImageView with that array (Swift)

女生的网名这么多〃 提交于 2019-12-17 21:08:58
问题 I have a problem with parse and swift and i hope you can help me :) I'm downloading strings and PFfiles from Parse and want to add it to an array (this works fine). Then I want to fill a Label with the string array (works fine as well) and an UIImageView with the PFFile array which is also an Image. But I always get an error: PFFile is not convertible to "UIImage But I have no clue how I can convert this PFFile so that I can use it with the UIImage View. var titles = [String] () var

Cant stream video (PFFile) from parse server

自闭症网瘾萝莉.ら 提交于 2019-12-12 18:22:44
问题 I am having trouble streaming video with my iOS app from URL of a PFFile uploaded in my database. I used Heroku and AWS and I still have the same issue. It used to work fine when the files were hosted in the old parse server. the PFFile url works fine when I open it in a chrome web browser but not in safari nor in the iOS app. the following is the link of the video: http://shuuapp.herokuapp.com/parse/files/wnQeou0L4klDelSEtMOX6SxXRVKu1f3sKl6vg349/24092609eadcc049f711aafbd59c1a18_movie.mp4 Its

Caching PFFile data from Parse

走远了吗. 提交于 2019-12-12 14:06:39
问题 My app is a messaging style app and in it you can "tag" another user. (A bit like twitter). Now, when this message is displayed, the avatar belonging to the person(s) who was tagged is displayed with that message. The avatar of the user is stored as a PFFile against the PFUser object. I'm loading it something like this... PFImageView *parseImageView = ... [taggedUser fetchIfNeededInBackgroundWithBlock:^(PFObject *user, NSError *error) { parseImageView.file = user[@"avatar"]; [parseImageView

How to add another column to my class in Parse.com? (Swift)

為{幸葍}努か 提交于 2019-12-08 10:32:06
问题 I am having some difficulty adding a new column to my class in Parse. Currently I have made a class (named: Venue Data) with the name and geopoints of restaurants. I would like to add to that class a column for image which will be paired respective to the specific restaurant. I am quite stumped as to how I should go about it. Any help is greatly appreciated. 回答1: Parse allows you to add columns to a class lazily, meaning that you can add a field to your PFObject and if it is not present in

Export PST and OST with pypff / libpff

流过昼夜 提交于 2019-12-02 03:04:23
I need to do in python a module to export PST and OST files and I am trying to use pypff to do so. Can someone give me some tips how can I use pypff to extract messages and attachments. To read messages in pst or ost files, in python, refer to the following functions in https://github.com/PacktPublishing/Learning-Python-for-Forensics/blob/master/Chapter%2010/pst_indexer.py folderTraverse(base) checkForMessages(folder) processMessage(message) To read the attachments also, you could modify processMessage(message) def processMessage(message, folder): attachments = [] total_attachment_size_bytes =

iOS - Can't stream video from Parse Backend

坚强是说给别人听的谎言 提交于 2019-11-30 20:42:07
Recently I have created my own parse server hosted on heroku using mongoLab to store my data. My problem is I am saving a video as a parse PFFile , however I can not seem to be able to stream it after saving it. Here are my exact steps. First, I save the video returned by UIImagePicker //Get the video URL let videoURL = info[UIImagePickerControllerMediaURL] as? NSURL //Create PFFile with NSData from URL let data = NSData(contentsOfURL: videoURL!) videoFile = PFFile(data: data!, contentType: "video/mp4") //Save PFFile first, then save the PFUser PFUser.currentUser()?.setObject(videoFile!,