TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ayesha Fathima
NA
184
30.1k
Response not received in time
Mar 19 2018 6:52 AM
Hi there,
Iam trying to read file,and need to take that base64 value and pass it as input for some webservice.
While doing this process,to read the file it is taking some time.
Before reading my file it is going to further steps,and iam getting base64 value as empty.
Any suggestion is highly appreciable for me.I tried to keep timeout while reading,but it is not working.
Below is sample code
if
(input.files.length!=0)
{
//file = input.files[i];
for
(i=0;i<input.files.length;i++){
var
fileReader =
new
FileReader();
filname=input.files[i][
"name"
];
fileReader.readAsDataURL(input.files[i]);
//setTimeout(fileReader.readAsDataURL(input.files[i]), 10000);
fileReadContent = fileReader.result
//here it is taking time to read the file
fileReadContent=fileReadContent.split(
","
);
fileReadContent.shift();
//to get base64 value
if
(fileReadContent!=
""
)
storecontent();
else
alert(
"Data not available"
)
}
}
Reply
Answers (
10
)
Windows 10 Calculator Automation using White Automation Tool
Data is coming in first column,while Adding row in datatable