1,154 Topics

Member Avatar for
Member Avatar for realworldmedia

How do i insert this into my sql database? I have tried a few things like putting the array bracks on the upload file. when i do this it saves the image location but doesnt upload the image. This is my upload snippet for ($i=0;$i<4;$i++) { if($_FILES['userfile']['name'][$i]) { $uploadfile = …

Member Avatar for realworldmedia
0
120
Member Avatar for ZeroZen

Hello Daniweb! I'm an amateur programmer who's learned quite a bit from online references, and usually searching eventually reveals the problem but I'm stuck! I've overcome many obstacles when creating a custom button on the Ajax Editor control, namespace issues, registring the controls properly etc. I resist the temptation to …

0
135
Member Avatar for xxxartistxxx

Hello Everyone,I'm new at DaniWeb I have a problem with my file download function. This's my function Private Function download_files(ByVal _URL As System.Uri, ByVal _SaveAs As String) If InternetConnection() = True Then Dim _WebClient As New System.Net.WebClient() Try AddHandler _WebClient.DownloadProgressChanged, AddressOf _DownloadProgressChanged lblStatus.Text = "Downloading File :" & _SaveAs _WebClient.DownloadFileAsync(_URL, …

0
148
Member Avatar for hankmeyer

Hello, I currently have a script that Uploads an image, resizes and saves successfully. I am having trubble understanding how I would rename the uploaded image according to the other image names in the directory. For example there are 3 images in the directory (Image1.png, Image2.gif and Image3.jpg) How would …

Member Avatar for cereal
1
4K
Member Avatar for wolwayne

Am getting **java.lang.IndexOutOfBoundsException** while I try to uplaod a file to server. I checked the code at loaclhost and it was working fine, but after uploading it to the server am getting the error. **upload.jsp** <form action="UploadServlet" method="post" enctype="multipart/form-data"> <input type="file" name="select" value="" /> <input type="submit" value="Select Profile Pic" /> …

Member Avatar for IIM
0
418
Member Avatar for c.pentasuglia

In a nutshell i have a java program that takes parameters from an XML file. I made a .jar file from my java project. Within the java project i have the XML file set to a static directory, i'd like to be able to change that so the jar would …

Member Avatar for c.pentasuglia
0
247
Member Avatar for shafeequeom
Member Avatar for hawkeyeviewonu

Sorry for my english.. Im trying to make a program that show the shortest route of this nodes using BFS algorithm.. ![115](/attachments/large/3/115.JPG "115") i tried to print the prev array which shows the shortest route but somehow it doesnt appear on console when running.. how to fix it? btw, is …

Member Avatar for histrungalot
0
984
Member Avatar for mbhanley

Need help with code i am trying to acheive upload of videos but when they are uploaded the file names need to be changed to have hyphens in replace of white space and still keep the exstensions. its proving difficult because once uploaded ffmpeg needs to read the output as …

Member Avatar for mbhanley
0
466
Member Avatar for Jorox03

I am trying to modify some code that was written in lecture to develop a program that simulates rgrep. The aim of the project is to search a directory's files for a string and output the line it occured on. The problem I'm having is I'm not sure what to …

Member Avatar for Jorox03
0
393
Member Avatar for VengefulToast

Will someone please tell me why I keep getting my custom file not found exception? The file is spelled correctly and is in the same directory of my java file. I am programming on Eclipse on Mac OS X. Here is my source: // Dillon Sheffield // Lab 10a // …

Member Avatar for VengefulToast
0
281
Member Avatar for nee_88

Please refer to the code below.It is used to extract files from a given directory, for further processing. #include <dirent.h> #include <stdio.h> #include <string.h> int main(void) { int i=0; struct dirent *direntry; dir = opendir("E:/muzikk"); if(!dir) { printf("Error: directory did not open!\n"); return 1; } while((direntry=readdir(dir))!=NULL) { printf("%d %s\n",i,direntry->d_name); i++; …

Member Avatar for nee_88
0
249
Member Avatar for wolwayne

My web hosting service provider allows me to uplaod my ROOT.war file only. and there is no directory structure. So is there any way by which I can upload pics and add new pages or make changes in existing pages without re-uploading the entire ROOT.war file. P.S. I also want …

Member Avatar for wolwayne
0
181
Member Avatar for YodaMerlin

This might be a very simple answer but it's been stumping me. I need to load an xml file so Ican parse in in javascript. But the file is located on a different server entirely. Can I download it to disc with javascript, so I can load it later? Thanks …

Member Avatar for emclondon
0
198
Member Avatar for Sawamura
Member Avatar for Sawamura
0
2K
Member Avatar for arunkumars

Hi, Am trying to check if a remote directory exists. my string has a path "\\1.1.1.1\XYZ", 1....1 being the IP address of the computer am trying to connect to, But Directory.Exists(stringPath) returns true when I debug the application and the same code returns false from the setup exe. Note : …

Member Avatar for BobS0327
0
217
Member Avatar for neuralcomplex

the simple thing i want to achieve is to be able to browse a file on my system an then use a servlet to finally store the file as a byte stream to my DB2 database. Initially i started by using coding the servlet part as a java application by …

0
117
Member Avatar for DaveyMoyes

Hi All, I have the following scrip that uploads a image to a destination folder on my server. What I am trying to do is "rename" the uploaded file and update the link in the back end database. The file uploads and stores in the correct folder, but what it …

Member Avatar for cereal
0
183
Member Avatar for ostrados

Hi all, hey guys could you please help me in this issue: i get warning message whenever i try to run my login form Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\db.php on line 10 unable to connect to the database i am using xampp, …

Member Avatar for ostrados
0
999
Member Avatar for paulnamroud

Hello, Actually, i have a website url where these files are stored. Example: http://www.mywebsite.com/files/file.txt http://www.mywebsite.com/files/image1.gif http://www.mywebsite.com/files/logo.jpg http://www.mywebsite.com/files/letter.doc http://www.mywebsite.com/files/dll/barcode.dll http://www.mywebsite.com/files/dll/MyLib.dll http://www.mywebsite.com/files/dll/Common.dll http://www.mywebsite.com/files/exe/MyApp.exe etc... So, my target is to build a small Device Application (Windows CE) in order to update these files on the device itself everytime the user clicked Update button. …

Member Avatar for thines01
0
213
Member Avatar for danielsikes

Hi, I am trying to copy a directory from one spot on my server to another spot on my server. I have copied the directory successfully, but suppose I delete a file in the "parent" directory. I want the "child" directory to be exactly the same as the parent directory. …

Member Avatar for pritaeas
0
244
Member Avatar for arihantphp

Hey all , I am working on a website on which the user has to upload images, most of the images are of large size and that takes a lot of time for the image to be uploaded, is there a way by which i can reduce the time taken …

Member Avatar for pritaeas
0
306
Member Avatar for FaisalSarfraz

Hi every one I am trying to upload a file on server but it is not uploading and always giving an error HEre is code. Please help. Its urgent [CODE] <?php session_start(); if(!session_is_registered(username)){ header("location:login.php"); } if($_REQUEST['title'] != '' && $_REQUEST['type']!='' && $_REQUEST['category'] != '' && $_REQUEST['sub']!=''&&$_REQUEST['elm3'] != '') { require("db.php"); …

Member Avatar for veedeoo
0
337
Member Avatar for OnIIcE

Hi guys, im trying to upload files to my script and have hit an anoying problem. if the file is bigger than what I allow in in my php.ini config, the $_POST and $_FILE comes through empty - and I cant check that there's been a post to then check …

Member Avatar for veedeoo
0
113
Member Avatar for Phong

(This has been discussed numerous times already, so much so that I've gotten lost wading through the existing threads.) Summary: - In a home Workgroup network of mostly XP computers and one Vista, the goal is that every computer be able to see the entire contents of the other computers …

Member Avatar for techsheaven
0
447
Member Avatar for talhatanveer

I am getting errors on installing Visual Studio 2008 on Windows 7 machine. On digging down deeper I found that "Microsoft Visual Studio Web Authoring Component" is not getting installed which is a pre-req for VS 2008. I further drilled down and searched different forums over the internet, they mostly …

Member Avatar for talhatanveer
0
938
Member Avatar for adityamadhira

Hi I need help regarding file download. $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $id = strrchr($url,"/"); $id= substr($id,1,strlen($id)); retrieving name of the pdf from url header('Content-disposition: attachment; filename='.$id); header('Content-type: application/pdf'); readfile($id); code for downloading file but it is not working? So i need help from you guys. Thanks in advance.

Member Avatar for adityamadhira
0
141
Member Avatar for technoknol

Hi friends, I have one file in PHP this file is remote upload script. But when i run this file, it's not downloading specified file in URL. Below is a script is there anyone who can solve my problem then pleases help me. [CODE]<?php define('BUFSIZ', 4095); $url = $_GET["t1"]; // …

Member Avatar for weekendrockstar
0
143
Member Avatar for sharon.chapman7

Hi, I am getting an System.OutofmemoryException when using Filestream to load zip file. the file is 521MB. My code is: //Insert using Filestream, file into SQL Server Table private void btnInsert_Click(object sender, EventArgs e) { OpenFileDialog openFileDlg = new OpenFileDialog(); openFileDlg.InitialDirectory = Directory.GetCurrentDirectory(); if (openFileDlg.ShowDialog() == DialogResult.OK) { FileInfo fi …

Member Avatar for gusano79
0
262
Member Avatar for raminsha

I can't upload file with form data. I am getting null value when accessing Request.getParameter("name"); how can i upload file as well as form data please help

Member Avatar for peter_budo
0
63

The End.