Is it ok to store data in base 64 encode format in mongodb database, I heard it increase data storag
Unanswered
Northeast Congo Lion posted this in #help-forum
Northeast Congo LionOP
const [imagePreview, setImagePreview] = useState<string>("");
const [adLink, setAdLink] = useState<string>("");
const handleCreateAd = async () => {
try {
const res = await axios.post(`/api/advertisement`, {
link: adLink,
image: imagePreview,
});
console.log("res of handleCreate:", res);
} catch (error) {
console.log("error in creating ads:", error);
}
};