storage

What are some Security holes a website is exposed through document upload?

萝らか妹 提交于 2019-12-03 20:28:43
I am new to the document storage space. I am not sure what i am doing yet, but before i begin i wanted to know about the possible security threats one has when one allows document uploads and what is the best way to sanitize the data? I am using PHP and will allow images, word docs, pdfs, excel docs, etc. And is this a good solution: http://blog.insicdesigns.com/2009/01/secure-file-upload-in-php-web-applications/ There are two really obvious ones: If improperly done, a file uploader could allow the user to overwrite other people's files -- including the PHP that runs the site . Make sure

iphone best way to store images

余生颓废 提交于 2019-12-03 15:20:07
问题 I'm developing an app that needs to cache some images from the web the images are likely to be 100x100 I just need to know which is better: Store the images as files in the iPhone file system Store them as blob in a sqlite Db along with other data already saved on the database. Appreciate your help. 回答1: Storing images in the database is definitely not recommended by Apple, the filesystem is actually really good at locating files (images in this case) on the disk, which makes it the best

Is there a way to get SD Card size in Android?

和自甴很熟 提交于 2019-12-03 14:33:28
问题 Welcome all I have tried every question related to this in Stackoverflow and google and none of them works. I have tried something like this next link, but it returns the same as internal storage: How to get an External storage sd card size (With Mounted SD card)? For example, if I have about 12GB internal storage and 4GB SD card storage, no matter what method I use, I always get the exact same number for the SD space as I do for internal space. It seems that the old methods posted here in

Storing Images in file system vs. Core Data

五迷三道 提交于 2019-12-03 14:16:37
I am currently working on an iOS application that I allow the user to add images from their photo library into the application. I store these images on the devices file system, and access them when I need them (when they are in a UIScrollView, I could access them quite often) I just wanted to get some opinions on this approach. Should I stay with the file system method, or would it be beneficial to store these I images in CoreData instead. Any suggestions on this would be greatly appreciated. Thanks. I don't think Core Data was really designed for storing this type of data. Doing so would be

Using array fields instead of massive number of objects

家住魔仙堡 提交于 2019-12-03 13:04:21
问题 In light of this article, I am wondering what people's experiences are with storing massive datasets (say, >10,000,000 objects) in-memory using arrays to store data fields instead of instantiating millions of objects and racking up the memory overhead (say, 12-24 bytes per object, depending which article you read). Data per property varies from item to item so I can't use a strict Flyweight pattern but would envision something similar. My idea of this sort of representation is that one has a

How can I store a data structure such as a Hashmap internally in Android?

六眼飞鱼酱① 提交于 2019-12-03 13:00:39
In my Android application I'm trying to store a Map structure such as: Map<String, Map<String, String>> using internal storage. I've looked into using SharedPreferences , but as you know, this only works when storing primitive data types. I tried to use FileOutputStream , but it only lets me write in bytes...Would I need to somehow serialize the Hashmap and then write to file? I've tried reading through http://developer.android.com/guide/topics/data/data-storage.html#filesInternal but I can't seem to find my solution. Here's an example of what I'm trying to do: private void

How to measure Android app data size and identify storage leaks?

旧巷老猫 提交于 2019-12-03 12:48:41
I made a small Android app and have been using it for a while now. I noticed that, in the settings, on the "data" line of my app's characteristics (I am not interested in analysing the amount shown on the "application" line nor on the "cache" line), it shows about 20 MB, which seemed a lot to me. I am afraid the app has storage leaks (i.e. that it produces data that is never erased). I decided to investigate and measure what might take that much space. I use pretty much all the available storage options for this app: SQLite DB, internal files, external files, shared preferences (and cache

Oracle NUMBER(p) storage size?

佐手、 提交于 2019-12-03 12:08:06
问题 I've searched for it but i can't find a conclusive answer to my question... I need to know what is the storage size of a number(p) field in Oracle. Examples: NUMBER(1), NUMBER(3), NUMBER(8), NUMBER(10) etc... 回答1: The storage used depends on the actual numeric value, as well as the column precision and scale of the column. The Oracle 11gR2 concepts guide says: Oracle Database stores numeric data in variable-length format. Each value is stored in scientific notation, with 1 byte used to store

Back up AppEngine database (Google cloud storage?)

China☆狼群 提交于 2019-12-03 12:04:29
I have an AppEngine application that currently has about 15GB of data, and it seems to me that it is impractical to use the current AppEngine bulk loader tools to back up datasets of this size. Therefore, I am starting to investigate other ways of backing up, and would be interested in hearing about practical solutions that people may have used for backing up their AppEngine Data. As an aside, I am starting to think that the Google Cloud Storage might be a good choice. I am curious to know if anyone has experience using the Google Cloud Storage as a backup for their AppEngine data, and what

Collecting Credit Card Information - not to collect payment

血红的双手。 提交于 2019-12-03 11:58:57
I am working in PHP on a Linux server with MySQL. I have a requirement (that I have attempted to talk them out of) to collect credit card information from users so that our company can use the card numbers to hold hotel rooms for a conference. We will not be charging the cards ourselves at all, but instead just sending them to the hotel. I then need to be able to download a CSV file and each time someone signs up an email to go to the admin with all the information. I tried to explain that this wasn't secure, but several other developers have done this for them in the past before I was working