473,388 Members | 1,340 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Upload image works fine unless image is edited first

Hi,

I've got a PHP Upload Form that works great, unless that is, the image
your uploading has been modified through a photo editing software.

Example: if I upload the image straight from a camera or other, it
uploads fine. However, If I want to rotate the image, or resize it
with photoshop or simmilar, making sure to save it again as a jpg, the
PHP upload won't upload the image.

It's like editing the image somehow changes it's mime type or
something?!
Any ideas?
Here's my upload script:

<?php
if($_POST["upload"]) //Check to see if submit was clicked
{
// Get the details of "imagefile"
$filename = $_FILES['imagefile']['name'];
$temporary_name = $_FILES['imagefile']['tmp_name'];
$mimetype = $_FILES['imagefile']['type'];
$filesize = $_FILES['imagefile']['size'];

//Open the image using the imagecreatefrom..() command based on the
MIME type.
switch($mimetype) {
case "image/jpg":
case "image/jpeg":
case "image/pjpeg":
$i = imagecreatefromjpeg($temporary_name);
break;
case "image/gif":
$i = imagecreatefromgif($temporary_name);
break;
case "image/png":
$i = imagecreatefrompng($temporary_name);
break;
}

//Delete the uploaded file
unlink($temporary_name);

//Specify the size of the thumbnail
$dest_x = 350;
$dest_y = 350;

//Is the original bigger than the thumbnail dimensions?
if (imagesx($i) $dest_x or imagesy($i) $dest_y) {
//Is the width of the original bigger than the height?
if (imagesx($i) >= imagesy($i)) {
$thumb_x = $dest_x;
$thumb_y = imagesy($i)*($dest_x/imagesx($i));
} else {
$thumb_x = imagesx($i)*($dest_y/imagesy($i));
$thumb_y = $dest_y;
}
} else {
//Using the original dimensions
$thumb_x = imagesx($i);
$thumb_y = imagesy($i);
}

//Generate a new image at the size of the thumbnail
$thumb = imagecreatetruecolor($thumb_x,$thumb_y);

//Copy the original image data to it using resampling
imagecopyresampled($thumb, $i ,0, 0, 0, 0, $thumb_x, $thumb_y,
imagesx($i), imagesy($i));

//Save the thumbnail
imagejpeg($thumb, "../images/$filename", 80);

//Display FileName
Print "Value for Image field: $filename";
$added =true;
}
?>

<html>
<form action="upload.php" method="POST" enctype="multipart/
form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="200000">
<input type="file" name="imagefile">
<input type="submit" name="upload" value="Upload Image">
</form>
</html>

Sep 5 '07 #1
7 2338
On Wed, 05 Sep 2007 16:33:07 +0200, xx75vulcan <xx********@gmail.com
wrote:
Hi,

I've got a PHP Upload Form that works great, unless that is, the image
your uploading has been modified through a photo editing software.

Example: if I upload the image straight from a camera or other, it
uploads fine. However, If I want to rotate the image, or resize it
with photoshop or simmilar, making sure to save it again as a jpg, the
PHP upload won't upload the image.

It's like editing the image somehow changes it's mime type or
something?!
Any ideas?
Here's my upload script:

<?php
if($_POST["upload"]) //Check to see if submit was clicked
{
// Get the details of "imagefile"
$filename = $_FILES['imagefile']['name'];
$temporary_name = $_FILES['imagefile']['tmp_name'];
$mimetype = $_FILES['imagefile']['type'];
Never trust mimetype. Use something like getimagesize() to determine
wether it is, and if so get the type of image.
$filesize = $_FILES['imagefile']['size'];

//Open the image using the imagecreatefrom..() command based on the
MIME type.
switch($mimetype) {
case "image/jpg":
case "image/jpeg":
case "image/pjpeg":
$i = imagecreatefromjpeg($temporary_name);
break;
case "image/gif":
$i = imagecreatefromgif($temporary_name);
break;
case "image/png":
$i = imagecreatefrompng($temporary_name);
break;
Add:

default:
echo $mimetype.' is not a supported image';
exit;
}
I would guess here is where it breaks, due to an unforseen mimetype. Do a
var_dump($i);exit(); here... Probably it isn't set.
//Delete the uploaded file
unlink($temporary_name);

//Specify the size of the thumbnail
$dest_x = 350;
$dest_y = 350;

//Is the original bigger than the thumbnail dimensions?
if (imagesx($i) $dest_x or imagesy($i) $dest_y) {
//Is the width of the original bigger than the height?
if (imagesx($i) >= imagesy($i)) {
$thumb_x = $dest_x;
$thumb_y = imagesy($i)*($dest_x/imagesx($i));
} else {
$thumb_x = imagesx($i)*($dest_y/imagesy($i));
$thumb_y = $dest_y;
}
} else {
//Using the original dimensions
$thumb_x = imagesx($i);
$thumb_y = imagesy($i);
}

//Generate a new image at the size of the thumbnail
$thumb = imagecreatetruecolor($thumb_x,$thumb_y);

//Copy the original image data to it using resampling
imagecopyresampled($thumb, $i ,0, 0, 0, 0, $thumb_x, $thumb_y,
imagesx($i), imagesy($i));

//Save the thumbnail
imagejpeg($thumb, "../images/$filename", 80);

//Display FileName
Print "Value for Image field: $filename";
$added =true;
}
?>

So, have you enabled error_reporting/display_errors? Do you know where the
code fails? Try to determine exactly where everyting goes wrong.

--
Rik Wasmus
Sep 5 '07 #2
xx75vulcan wrote:
Hi,

I've got a PHP Upload Form that works great, unless that is, the image
your uploading has been modified through a photo editing software.

Example: if I upload the image straight from a camera or other, it
uploads fine. However, If I want to rotate the image, or resize it
with photoshop or simmilar, making sure to save it again as a jpg, the
PHP upload won't upload the image.

It's like editing the image somehow changes it's mime type or
something?!
Hi Vulcan,

Maybe.
Any ideas?
I ALWAYS start debugging such issues with:

echo "<pre>";
print_r($_FILES);
echo "</pre>";
exit;

Then compare the output of your uneditted and editted version.
Do you see any differences?

That will probably give you a hint.
And do NOT rely too much on mimetype.
from php.net:

$_FILES['userfile']['type']
The mime type of the file, if the browser provided this
information. An example would be "image/gif". This mime type is however
not checked on the PHP side and therefore don't take its value for granted.

Hope that helps.

Regards,
Erwin Moller
Here's my upload script:

<?php
if($_POST["upload"]) //Check to see if submit was clicked
{
// Get the details of "imagefile"
$filename = $_FILES['imagefile']['name'];
$temporary_name = $_FILES['imagefile']['tmp_name'];
$mimetype = $_FILES['imagefile']['type'];
$filesize = $_FILES['imagefile']['size'];

//Open the image using the imagecreatefrom..() command based on the
MIME type.
switch($mimetype) {
case "image/jpg":
case "image/jpeg":
case "image/pjpeg":
$i = imagecreatefromjpeg($temporary_name);
break;
case "image/gif":
$i = imagecreatefromgif($temporary_name);
break;
case "image/png":
$i = imagecreatefrompng($temporary_name);
break;
}

//Delete the uploaded file
unlink($temporary_name);

//Specify the size of the thumbnail
$dest_x = 350;
$dest_y = 350;

//Is the original bigger than the thumbnail dimensions?
if (imagesx($i) $dest_x or imagesy($i) $dest_y) {
//Is the width of the original bigger than the height?
if (imagesx($i) >= imagesy($i)) {
$thumb_x = $dest_x;
$thumb_y = imagesy($i)*($dest_x/imagesx($i));
} else {
$thumb_x = imagesx($i)*($dest_y/imagesy($i));
$thumb_y = $dest_y;
}
} else {
//Using the original dimensions
$thumb_x = imagesx($i);
$thumb_y = imagesy($i);
}

//Generate a new image at the size of the thumbnail
$thumb = imagecreatetruecolor($thumb_x,$thumb_y);

//Copy the original image data to it using resampling
imagecopyresampled($thumb, $i ,0, 0, 0, 0, $thumb_x, $thumb_y,
imagesx($i), imagesy($i));

//Save the thumbnail
imagejpeg($thumb, "../images/$filename", 80);

//Display FileName
Print "Value for Image field: $filename";
$added =true;
}
?>

<html>
<form action="upload.php" method="POST" enctype="multipart/
form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="200000">
<input type="file" name="imagefile">
<input type="submit" name="upload" value="Upload Image">
</form>
</html>
Sep 5 '07 #3
Thanks Erwin, I feel I'm a little closer.

Deployed your trick, and below is what I get for edited files:

Array
(
[imagefile] =Array
(
[name] =DSC00064.JPG
[type] =>
[tmp_name] =>
[error] =2
[size] =0
)

)

This is what I get for un-edited files:

Array
(
[imagefile] =Array
(
[name] =2_site_top.jpg
[type] =image/jpeg
[tmp_name] =C:\WINDOWS\TEMP\php59.tmp
[error] =0
[size] =32448
)

)
On Sep 5, 10:14 am, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
xx75vulcan wrote:
Hi,
I've got a PHP Upload Form that works great, unless that is, the image
your uploading has been modified through a photo editing software.
Example: if I upload the image straight from a camera or other, it
uploads fine. However, If I want to rotate the image, or resize it
with photoshop or simmilar, making sure to save it again as a jpg, the
PHP upload won't upload the image.
It's like editing the image somehow changes it's mime type or
something?!

Hi Vulcan,

Maybe.
Any ideas?

I ALWAYS start debugging such issues with:

echo "<pre>";
print_r($_FILES);
echo "</pre>";
exit;

Then compare the output of your uneditted and editted version.
Do you see any differences?

That will probably give you a hint.

And do NOT rely too much on mimetype.
from php.net:

$_FILES['userfile']['type']
The mime type of the file, if the browser provided this
information. An example would be "image/gif". This mime type is however
not checked on the PHP side and therefore don't take its value for granted.

Hope that helps.

Regards,
Erwin Moller
Here's my upload script:
<?php
if($_POST["upload"]) //Check to see if submit was clicked
{
// Get the details of "imagefile"
$filename = $_FILES['imagefile']['name'];
$temporary_name = $_FILES['imagefile']['tmp_name'];
$mimetype = $_FILES['imagefile']['type'];
$filesize = $_FILES['imagefile']['size'];
//Open the image using the imagecreatefrom..() command based on the
MIME type.
switch($mimetype) {
case "image/jpg":
case "image/jpeg":
case "image/pjpeg":
$i = imagecreatefromjpeg($temporary_name);
break;
case "image/gif":
$i = imagecreatefromgif($temporary_name);
break;
case "image/png":
$i = imagecreatefrompng($temporary_name);
break;
}
//Delete the uploaded file
unlink($temporary_name);
//Specify the size of the thumbnail
$dest_x = 350;
$dest_y = 350;
//Is the original bigger than the thumbnail dimensions?
if (imagesx($i) $dest_x or imagesy($i) $dest_y) {
//Is the width of the original bigger than the height?
if (imagesx($i) >= imagesy($i)) {
$thumb_x = $dest_x;
$thumb_y = imagesy($i)*($dest_x/imagesx($i));
} else {
$thumb_x = imagesx($i)*($dest_y/imagesy($i));
$thumb_y = $dest_y;
}
} else {
//Using the original dimensions
$thumb_x = imagesx($i);
$thumb_y = imagesy($i);
}
//Generate a new image at the size of the thumbnail
$thumb = imagecreatetruecolor($thumb_x,$thumb_y);
//Copy the original image data to it using resampling
imagecopyresampled($thumb, $i ,0, 0, 0, 0, $thumb_x, $thumb_y,
imagesx($i), imagesy($i));
//Save the thumbnail
imagejpeg($thumb, "../images/$filename", 80);
//Display FileName
Print "Value for Image field: $filename";
$added =true;
}
?>
<html>
<form action="upload.php" method="POST" enctype="multipart/
form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="200000">
<input type="file" name="imagefile">
<input type="submit" name="upload" value="Upload Image">
</form>
</html>

Sep 5 '07 #4
Ok I feel like a dope!

I didn't realize that editing a picture, even simply rotating it could
increase it's file size.
Upped the upload_max_filesize in php.ini and the hidden form field
max_file_size value and it works great.

Thanks a million for that neat debugging trick!

Chris
On Sep 5, 10:50 am, xx75vulcan <xx75vul...@gmail.comwrote:
Thanks Erwin, I feel I'm a little closer.

Deployed your trick, and below is what I get for edited files:

Array
(
[imagefile] =Array
(
[name] =DSC00064.JPG
[type] =>
[tmp_name] =>
[error] =2
[size] =0
)

)

This is what I get for un-edited files:

Array
(
[imagefile] =Array
(
[name] =2_site_top.jpg
[type] =image/jpeg
[tmp_name] =C:\WINDOWS\TEMP\php59.tmp
[error] =0
[size] =32448
)

)

On Sep 5, 10:14 am, Erwin Moller

<Since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
xx75vulcan wrote:
Hi,
I've got a PHP Upload Form that works great, unless that is, the image
your uploading has been modified through a photo editing software.
Example: if I upload the image straight from a camera or other, it
uploads fine. However, If I want to rotate the image, or resize it
with photoshop or simmilar, making sure to save it again as a jpg, the
PHP upload won't upload the image.
It's like editing the image somehow changes it's mime type or
something?!
Hi Vulcan,
Maybe.
Any ideas?
I ALWAYS start debugging such issues with:
echo "<pre>";
print_r($_FILES);
echo "</pre>";
exit;
Then compare the output of your uneditted and editted version.
Do you see any differences?
That will probably give you a hint.
And do NOT rely too much on mimetype.
from php.net:
$_FILES['userfile']['type']
The mime type of the file, if the browser provided this
information. An example would be "image/gif". This mime type is however
not checked on the PHP side and therefore don't take its value for granted.
Hope that helps.
Regards,
Erwin Moller
Here's my upload script:
<?php
if($_POST["upload"]) //Check to see if submit was clicked
{
// Get the details of "imagefile"
$filename = $_FILES['imagefile']['name'];
$temporary_name = $_FILES['imagefile']['tmp_name'];
$mimetype = $_FILES['imagefile']['type'];
$filesize = $_FILES['imagefile']['size'];
//Open the image using the imagecreatefrom..() command based on the
MIME type.
switch($mimetype) {
case "image/jpg":
case "image/jpeg":
case "image/pjpeg":
$i = imagecreatefromjpeg($temporary_name);
break;
case "image/gif":
$i = imagecreatefromgif($temporary_name);
break;
case "image/png":
$i = imagecreatefrompng($temporary_name);
break;
}
//Delete the uploaded file
unlink($temporary_name);
//Specify the size of the thumbnail
$dest_x = 350;
$dest_y = 350;
//Is the original bigger than the thumbnail dimensions?
if (imagesx($i) $dest_x or imagesy($i) $dest_y) {
//Is the width of the original bigger than the height?
if (imagesx($i) >= imagesy($i)) {
$thumb_x = $dest_x;
$thumb_y = imagesy($i)*($dest_x/imagesx($i));
} else {
$thumb_x = imagesx($i)*($dest_y/imagesy($i));
$thumb_y = $dest_y;
}
} else {
//Using the original dimensions
$thumb_x = imagesx($i);
$thumb_y = imagesy($i);
}
//Generate a new image at the size of the thumbnail
$thumb = imagecreatetruecolor($thumb_x,$thumb_y);
//Copy the original image data to it using resampling
imagecopyresampled($thumb, $i ,0, 0, 0, 0, $thumb_x, $thumb_y,
imagesx($i), imagesy($i));
//Save the thumbnail
imagejpeg($thumb, "../images/$filename", 80);
//Display FileName
Print "Value for Image field: $filename";
$added =true;
}
?>
<html>
<form action="upload.php" method="POST" enctype="multipart/
form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="200000">
<input type="file" name="imagefile">
<input type="submit" name="upload" value="Upload Image">
</form>
</html>

Sep 5 '07 #5
xx75vulcan wrote:
Ok I feel like a dope!

I didn't realize that editing a picture, even simply rotating it could
increase it's file size.
Upped the upload_max_filesize in php.ini and the hidden form field
max_file_size value and it works great.
Good.
Thanks a million for that neat debugging trick!
Yes, print_r() is very handy during debuggingsession.
Whenever you are in trouble, just print_r() whatever it is you don't
understand. Often helps.
(Even used it on my girlfriend, but I didn't understand the output.)

Regards,
Erwin Moller
>
Chris
On Sep 5, 10:50 am, xx75vulcan <xx75vul...@gmail.comwrote:
>Thanks Erwin, I feel I'm a little closer.

Deployed your trick, and below is what I get for edited files:

Array
(
[imagefile] =Array
(
[name] =DSC00064.JPG
[type] =>
[tmp_name] =>
[error] =2
[size] =0
)

)

This is what I get for un-edited files:

Array
(
[imagefile] =Array
(
[name] =2_site_top.jpg
[type] =image/jpeg
[tmp_name] =C:\WINDOWS\TEMP\php59.tmp
[error] =0
[size] =32448
)

)

On Sep 5, 10:14 am, Erwin Moller

<Since_humans_read_this_I_am_spammed_too_m...@spa myourself.comwrote:
>>xx75vulcan wrote:
Hi,
I've got a PHP Upload Form that works great, unless that is, the image
your uploading has been modified through a photo editing software.
Example: if I upload the image straight from a camera or other, it
uploads fine. However, If I want to rotate the image, or resize it
with photoshop or simmilar, making sure to save it again as a jpg, the
PHP upload won't upload the image.
It's like editing the image somehow changes it's mime type or
something?!
Hi Vulcan,
Maybe.
Any ideas?
I ALWAYS start debugging such issues with:
echo "<pre>";
print_r($_FILES);
echo "</pre>";
exit;
Then compare the output of your uneditted and editted version.
Do you see any differences?
That will probably give you a hint.
And do NOT rely too much on mimetype.
from php.net:
$_FILES['userfile']['type']
The mime type of the file, if the browser provided this
information. An example would be "image/gif". This mime type is however
not checked on the PHP side and therefore don't take its value for granted.
Hope that helps.
Regards,
Erwin Moller
Here's my upload script:
<?php
if($_POST["upload"]) //Check to see if submit was clicked
{
// Get the details of "imagefile"
$filename = $_FILES['imagefile']['name'];
$temporary_name = $_FILES['imagefile']['tmp_name'];
$mimetype = $_FILES['imagefile']['type'];
$filesize = $_FILES['imagefile']['size'];
//Open the image using the imagecreatefrom..() command based on the
MIME type.
switch($mimetype) {
case "image/jpg":
case "image/jpeg":
case "image/pjpeg":
$i = imagecreatefromjpeg($temporary_name);
break;
case "image/gif":
$i = imagecreatefromgif($temporary_name);
break;
case "image/png":
$i = imagecreatefrompng($temporary_name);
break;
}
//Delete the uploaded file
unlink($temporary_name);
//Specify the size of the thumbnail
$dest_x = 350;
$dest_y = 350;
//Is the original bigger than the thumbnail dimensions?
if (imagesx($i) $dest_x or imagesy($i) $dest_y) {
//Is the width of the original bigger than the height?
if (imagesx($i) >= imagesy($i)) {
$thumb_x = $dest_x;
$thumb_y = imagesy($i)*($dest_x/imagesx($i));
} else {
$thumb_x = imagesx($i)*($dest_y/imagesy($i));
$thumb_y = $dest_y;
}
} else {
//Using the original dimensions
$thumb_x = imagesx($i);
$thumb_y = imagesy($i);
}
//Generate a new image at the size of the thumbnail
$thumb = imagecreatetruecolor($thumb_x,$thumb_y);
//Copy the original image data to it using resampling
imagecopyresampled($thumb, $i ,0, 0, 0, 0, $thumb_x, $thumb_y,
imagesx($i), imagesy($i));
//Save the thumbnail
imagejpeg($thumb, "../images/$filename", 80);
//Display FileName
Print "Value for Image field: $filename";
$added =true;
}
?>
<html>
<form action="upload.php" method="POST" enctype="multipart/
form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="200000">
<input type="file" name="imagefile">
<input type="submit" name="upload" value="Upload Image">
</form>
</html>

Sep 5 '07 #6
On Wed, 05 Sep 2007 18:07:26 +0200, Erwin Moller
<Si******************************************@spam yourself.comwrote:
xx75vulcan wrote:
>Ok I feel like a dope!
I didn't realize that editing a picture, even simply rotating it could
increase it's file size.
Upped the upload_max_filesize in php.ini and the hidden form field
max_file_size value and it works great.

Good.
>Thanks a million for that neat debugging trick!
Ah, fileuploads gone array, check:
http://www.php.net/manual/en/feature...oad.errors.php
Yes, print_r() is very handy during debuggingsession.
Whenever you are in trouble, just print_r() whatever it is you don't
understand. Often helps.
(Even used it on my girlfriend, but I didn't understand the output.)
Hehe, probably due to circular references :P
--
Rik Wasmus
Sep 5 '07 #7
Rik Wasmus wrote:
On Wed, 05 Sep 2007 18:07:26 +0200, Erwin Moller
<Si******************************************@spam yourself.comwrote:
>xx75vulcan wrote:
>>Ok I feel like a dope!
I didn't realize that editing a picture, even simply rotating it could
increase it's file size.
Upped the upload_max_filesize in php.ini and the hidden form field
max_file_size value and it works great.

Good.
>>Thanks a million for that neat debugging trick!

Ah, fileuploads gone array, check:
http://www.php.net/manual/en/feature...oad.errors.php
>Yes, print_r() is very handy during debuggingsession.
Whenever you are in trouble, just print_r() whatever it is you don't
understand. Often helps.
(Even used it on my girlfriend, but I didn't understand the output.)

Hehe, probably due to circular references :P
:-) I can tell you must have one too. :P

Regards,
Erwin
Sep 6 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
0
by: Paul Hamlington | last post by:
Hello, I've been programming in ASP for a little while now and quite an advanced user, but I have come across an unusual problem in which I need assistance. I have built my own image upload,...
4
by: miarte | last post by:
I have a form to allow the user upload images. The user browse for an image in their computer and click open, th image to be upload is preview on the img tag. The script works fine with IE, but...
3
by: Pitcairnia | last post by:
The basic purpose of the site is for authenticated users to post event listings, which often include photographs. The user is faced with a page where they can insert all of the information about...
13
by: Neo Geshel | last post by:
I have examined about 80+ different upload scripts on the 'net, both in VB and C#, and none seem to do what I need them to do. Perhaps someone here can point me somewhere that Google hasn't...
9
by: 8anos | last post by:
Hello, I am new at the community and newbie at programming :) As you may know rapidshare provides a perl script for linux, to upload files at their servers. You can find the original scripts at...
9
by: Steve Poe | last post by:
I work for an animal hospital trying to use PHP to store an animal's dental x-rays to a file server. I can browse for the xray on the local desktop computer then click "Upload Image". This...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
18
jhardman
by: jhardman | last post by:
Have you ever wanted to upload files through a form and thought, "I'd really like to use ASP, it surely has that capability, but the tutorial I used to learn ASP didn't mention how to do this."? ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.