Questions tagged [image-file]
76 questions
51
votes
7 answers
How to get only images using scandir in PHP?
Is there any way to get only images with extensions jpeg, png, gif etc while using
$dir = '/tmp';
$files1 = scandir($dir);

esafwan
- 17,311
- 33
- 107
- 166
6
votes
4 answers
Android - Send Image file to the Server DB
Users save three data:
name, note and image. As you can see the code below,
I succeeded to code to send the name and note to the server side.
But, I have no idea how to send a selected image file from the device to the serverDB.
public class…

jung hur
- 81
- 1
- 4
- 11
5
votes
3 answers
Second path fragment must not be a drive or UNC name
How to read all image files in folder by environment path folder in main folder:
string path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "mainFolder");
for example if inner folder for one file path is:
…
user6841064
5
votes
0 answers
Android edit system.img file
I want to add certificate to my image file so latter I can start an emulator with that certificate.
emulator -avd my_adb_device -system path_to_image_file
But I don't know how to edit image files.
I been trying several things without…

Ilya Gazman
- 31,250
- 24
- 137
- 216
5
votes
2 answers
Is it possible to find the file extension of a UIImage ?
I found the below code in Finding image type from NSData or UIImage which helps to check four different image types of a UIimage
(NSString *)contentTypeForImageData:(NSData *)data {
uint8_t c;
[data getBytes:&c length:1];
switch…

sher17
- 607
- 1
- 12
- 31
3
votes
0 answers
Convert Uint8ClampedArray to Image file as shown below and tell me solution
I want to convert Uint8ClampedArray (as shown in image):-
to an image file(as shown in image):-
I want this conversion so that I can send that image file to an API in angular

V_for_Vj
- 849
- 1
- 12
- 30
3
votes
1 answer
Paint java GUI component to image file
Let's say I have
JButton test = new JButton("Test Button");
and I want to draw the button into an image object and save it to a file.
I tried this:
BufferedImage b = new BufferedImage(500, 500,…

Simon
- 9,255
- 4
- 37
- 54
3
votes
6 answers
Get image file dimensions in .bat file
I have a bat file that lists the paths of all images in a folder the code is
@echo off
break > infofile.txt
for /f "delims=" %%F in ('dir /b /s *.bmp') do (
echo %%F 1 1 1 100 100 >>infofile.txt
)
The text file looks like…

Charles Osei
- 175
- 2
- 3
- 15
2
votes
0 answers
How to ignore uploading a image file by using Nodejs and multer
i am a beginner of nodejs and I'm using multer to upload image file. I want the user to be able to submit a form where posting an image is optional
However , if i submit and skip the selection of image file , an error will occur: " Cannot read…

Thanh Vu
- 25
- 6
2
votes
1 answer
File format not supported but when decoding it with base64 it works fine
Hello i'm having issue with uploading image to the cloud (Backblaze B2).
The problem is, when I use the example Thunder client to upload the file everything works fine and file is shown.
Now my problem is that when I upload with JS I don't know why…

Singh
- 783
- 1
- 6
- 24
2
votes
1 answer
Append metadata to a file in Dart/Flutter
I'm building an flutter app and I'm trying to save images with their respective metadata intact.
I'm using a lib that makes possible to read image bytes and read metadata (MultiImagePicker). But when I save the image bytes to a new file, the…

Werex Zenok
- 93
- 1
- 3
- 12
2
votes
2 answers
In Flutter - How to pass the image downloaded from the url
Through the API I retrieve data of an object - including its url. I show on one screen an image with url (Image.Network()). Now, after clicking on this image on the list, I want to move to a single image view - how do I pass the image, not the url,…

Captivity
- 279
- 5
- 21
2
votes
1 answer
C# - upload file by chunks - bad last chunk size
I am trying to upload large files to 3rd part service by chunks. But I have problem with last chunk. Last chunk would be always smaller then 5mb, but all chunks incl. the last have all the same size - 5mb
My code:
int chunkSize = 1024 * 1024 *…

Karel_cz
- 133
- 1
- 11
2
votes
0 answers
what alternative of formdata in ios for web application?
Because formdata function such as append, set etc. is not compatible in ios devices for web application, is there any alternative of formdata to upload image file to server? because the server need to get file.

Primawan Damarjati
- 115
- 3
- 11
2
votes
1 answer
How to create customized Android System Images from the AOSP?
I have already created the default Android system images (like userdata.img, system.img, ramdisk.img) by following the instructions at Android page.
What I would like to create is customized Android system images from AOSP(by removing the apps &…

user548665
- 21
- 1
- 3