
Search In
class LoadImage extends AsyncTask<Void, Void, Void> {
@Override
protected Void doInBackground(Void... urls) {
Bitmap theBitmap = null;
Sometimes we need to apply validations on file-size and file-type of a file while uploading. We can check this by attaching a function to the "change" event.
Examlpe:
<input type="file" name="uploadFile" id="uploadFile" class="upload" title="Ch
To create slider with angular UI, carousel is used as it is same as bootstrap's image carousel. But It also supports swiping in the touch devices. ngTouch is used to enable the swiping in the touch devices. We have to load ngTouch module as a dep
Block Coding
To ensure accuracy of the received data frame redundant bits are used. For example, in even-parity, one parity bit is added to make the count of 1s in the frame even.
This way the original number of bits is increased. I
Hello Guy's
Below code will help you to download file from server using liferay 6.2.
Here I am writing a portlet to download file.
For better understanding create portlet in your eclipse and follow below steps :
Step: 1
Edit view.jsp and put belo
Consider definition of int main():
int main()
{
return 0;
}
Consider definition of int main(void):
int main(void)
{
return 0;
}
The above two definition work perfectly fine in C but the difference between two is int main() can b
In an IOS app development,user can have two methods to download file from server i.e Synchronous and Asynchronous . So before going ahead ,please take a look to the basic knowledge of these methods .
A Synchronous method is preferable in case of tra
Hi all,
Let take you have two points, Point1 (In Boston) and Point2 (In Atlanta), Now you have to show the route between two points.
In below method , you have to pass two param's i.e.. two point of map.
- (void)displayRouteFrom:(CLLocationCoordi
Hello Readers ,
Breadcrumbs or breadcrumb trails are a graphical control element used as a navigational aid in user interfaces. It allows users to keep track of their locations within programs, documents or websites.
So in this blog
Hey, I'm in desperate need. I have made a JSON object with PHP named userAuth and I am trying to pass it to a JS file with Ajax, here is my PHP code (auth.php):
$userAuth->access = 1;
json_encode($userAuth);
Here is my JS (
