laravel command to create symlink storage
php artisan storage:link
laravel command to create symlink storage
php artisan storage:link
java how to serialize a file into a local server
package com.techbeamers.serialization;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
public class SerializationLib {
// Do serialize the Java object and save it to a file
public static void doSerialize(Object obj, String outputFile)
throws IOException {
FileOutputStream fileTowrite = new FileOutputStream(outputFile);
ObjectOutputStream objTowrite = new ObjectOutputStream(fileTowrite);
objTowrite.writeObject(obj);
fileTowrite.close();
}
// Do deserialize the Java object from a given file
public static Object doDeserialize(String inputFile) throws IOException,
ClassNotFoundException {
FileInputStream fileToread = new FileInputStream(inputFile);
ObjectInputStream objToread = new ObjectInputStream(fileToread);
Object obj = objToread.readObject();
objToread.close();
return obj;
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us